import request from '@/utils/request'
/**
 * 获取当时工单汇总信息(人员统计头部信息)
 */
export const workOrderListAPI = (start, end) => {
  return request.get('/task-service/task/taskReportInfo/' + start + '/' + end)
}
/**
 * 获取一定时间范围之内的订单总数
 */
export const TotalNumberAPI = (params) => {
  return request.get('/order-service/report/orderCount', { params })
}
/**
 * 获取一定时间范围之内的收入
 */
export const TotalMoneyAPI = (params) => {
  return request.get('/order-service/report/orderAmount', { params })
}
/**
 * 获取销售前几的商品
 */
export const skuTopAPI = (start, end) => {
  return request.get('/order-service/report/skuTop/' + 10 + '/' + start + '/' + end)
}
/**
 * 根据地区汇总销售额数据(销售量分布)
 */
export const AreaReportAPI = (start, end) => {
  return request.get('/order-service/report/regionCollect/' + start + '/' + end)
}
/**
 * 获取销售额统计
 */
export const SummaryReportAPI = (collectType, start, end) => {
  return request.get('/order-service/report/amountCollect/' + collectType + '/' + start + '/' + end)
}
/**
 * 合作商点位汇总统计
 */
export const PartnerLocationAPI = () => {
  return request.get('/vm-service/node/nodeCollect')
}
/**
 * 获取点位总数
 */
export const TotalCountAPI = () => {
  return request.get('/vm-service/node/count')
}
/**
 * 获取合作商总数
 */
export const PartnerNumberAPI = () => {
  return request.get('/user-service/partner/count')
}
/**
 * 获取10个故障设备列表
 */
export const FaultyEquipmentAPI = () => {
  return request.get('/status-service/status/top10')
}
